package com.zysf.library_boot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zysf.library_boot.dto.MyReaderCommentDto;
import com.zysf.library_boot.dto.ReaderCommentDto;
import com.zysf.library_boot.entity.ReaderComment;
import com.zysf.library_boot.service.ReaderCommentService;
import com.zysf.library_boot.mapper.ReaderCommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 31161
* @description 针对表【reader_comment】的数据库操作Service实现
* @createDate 2025-01-03 00:32:38
*/
@Service
public class ReaderCommentServiceImpl extends ServiceImpl<ReaderCommentMapper, ReaderComment>
    implements ReaderCommentService{

    @Autowired
    ReaderCommentMapper readerCommentMapper;

    @Override
    public IPage<ReaderCommentDto> getCustomReaderComment(Page<ReaderCommentDto> page) {
        return readerCommentMapper.getCustomReaderComment(page);
    }

    @Override
    public IPage<MyReaderCommentDto> getCustomMyReaderComment(Integer id, Page<MyReaderCommentDto> page) {
        return readerCommentMapper.getCustomMyReaderComment(id, page);
    }
}




